#pragma once

#include "driver/gpio.h"

// 使用GPIO13控制继电器，高电平接通，低电平断开
#define RELAY_PIN GPIO_NUM_13
// 当ESP32启动时，检测到GPIO6为低电平时，清除配网信息，进入可重新配网的模式
#define RESET_PIN GPIO_NUM_6

// 合宙ESP32C3-CORE开发板 LED D4对应GPIO 12
#define LED_D4_PIN GPIO_NUM_12
// 合宙ESP32C3-CORE开发板 LED D5对应GPIO 13
// #define LED_D5_PIN GPIO_NUM_13

#define MQTT_URI_LEN 64
#define MQTT_TOPIC_LEN 64
#define MQTT_CONFIG_TOPIC_PREFIX "config/"
#define MQTT_USERNAME_LEN 32
#define MQTT_PASSWORD_LEN 32


#define LIGHT_COMMAND_OFF "OFF"
#define LIGHT_COMMAND_ON "ON"
#define LIGHT_COMMAND_REPORT "REPORT"
#define LIGHT_COMMAND_CLEAR_CONFIG "CLEAR_CONFIG"
#define LIGHT_COMMAND_OTA "OTA"